--[[
	身上的钻石存入银行
]]
local filename = "banksave.lua"

local timetool = require "timetool"
local skynet = require "skynet"
local cluster = require "skynet.cluster"
local filelog =require "filelog"

local service = nil
local CMD = {
	service = nil
}

function CMD.process(rid, msgbody)
	if not service then
		service = CMD.service
	end
	--[[
	-- 判断是否认有密码
    if not service.money.lock_password or service.money.lock_password == "" then
		return {retcode = EErrCode.ERR_INVALID_PASSWORD, retstr = "请先设置密码！"}
	end
	--]]
	return service:banksave(msgbody.money_type, msgbody.value)
end 

return CMD